import { EventUpdate } from "@ui/utils/var";
import { ExtractPropTypes } from "vue";
export const colComProps = {
  type: {
    type: String
  },
  id: {
    type: String,
    default: ''
  },
  colId: {
    type: String,
    default: ''
  },
  label: {
    type: String,
    default: ''
  },
  typeProps: {
    type: Object,
    default: () => ({} as any)
  },
  col: {
    type: Object,
    default: () => ({} as ZTableCol)
  },
  modelValue: {
    type: [String, Number, Boolean]
  },
  data: {
    type: Array,
    default: () => ([] as any[])
  },
  rowIndex: {
    type: Number,
    require: true,
    default: 1
  }
}
export const colComEmits = {
  [EventUpdate]: (_data: any) => true
}
export type ColComProps = ExtractPropTypes<typeof colComProps>
export type ColComEmits = typeof colComEmits